package com.bjkcst.hcnet;

import android.graphics.SurfaceTexture;
import android.view.SurfaceView;

import com.hikvision.netsdk.NET_DVR_DEVICEINFO_V30;

import java.io.Serializable;

/**
 * author: glc.
 * Date: 2022/5/13  14:51
 * Description:
 */
public class CameraBean implements Serializable {


    public String account;
    public String password;
    public String ip;
    public int port;
    public SurfaceView showView;
    public SurfaceTexture surfaceTexture;
    public int sound;
    public int previewHandle = -1;
    public int uerID = -1;
    public int byChanNum = 0;
    public int byStartChan = 0;
    public int iPChanNum = 0;
    public int byStartDChan = 0;
    public int deviceNo;


    // 连接到后的参数
    public NET_DVR_DEVICEINFO_V30 cameraInfo;
    public int loginId = -1, playingHandle;
    public boolean playing = false;

    private CameraBean() {}

    public CameraBean(String ip, int port, String account, String password, int sound,int deviceNo) {
        this.account = account;
        this.password = password;
        this.ip = ip;
        this.port = port;
        this.sound = sound;
        this.deviceNo = deviceNo;
    }

}
